package service;

import bean.Dept;
import dao.DeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptService {

    @Autowired
    DeptMapper mapper;

    public List<Dept> getDepts() {
        return mapper.selectByExample(null);
    }

}
